const mongoose = require("mongoose")
const Schema = mongoose.Schema
const UserType = {
  username: String,
  password: String,
  age: Number
}
// 第二个参数，限制集合里面字段类型
const UserModel = mongoose.model("user", new Schema(UserType))


// 模型 user 将会对应 users 集合，
module.exports = UserModel